<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<jsp:include page="header.jsp"/>

<c:if test="${sessionScope.usuario eq null}">
	<c:redirect url="index.jsp"></c:redirect>	
</c:if>

<c:set var="vehicleId" value="${param.vehId}" scope="session"></c:set>


<title>Image Upload</title></head>

<p>${vehicleId} </p>

  <form action="/uploadImage.kml" method="post" 
   enctype="multipart/form-data" 
   name="productForm" id="productForm"><br><br>
   
   <input type="hidden" name="vehicleId" id="vehicleId" value="1"/>
   
  <table width="400px" align="center" border=0 
  style="background-color:ffeeff;">
  <tr>
  <td align="center" colspan=2 style="
   font-weight:bold;font-size:20pt;">
   Image Details</td>
  </tr>

  <tr>
  <td align="center" colspan=2>&nbsp;</td>
  </tr>

  <tr>
  <td>Image Link: </td>
  <td>
  <input type="file" name="file" id="file">
  <td>
  </tr>

  <tr>
  <td></td>
  <td><input type="submit" name="Submit" value="Submit"></td>
  </tr>
  <tr>
  <td colspan="2">&nbsp;</td>
  </tr>

  </table>
  </form>


<jsp:include page="footer.jsp"/>